package com.gsafety.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Service;

/**
 * @author
 * Date  2025/5/24 15:09
 */
@Service
@Slf4j
public class PersonService {

    @Tool(name = "getPersonInfo", description = "根据姓名查询用户信息")
    public String getPersonInfo(@ToolParam(description = "姓名") String name) {
      //  log.info("llm调用getPersonInfo()方法,参数：name={}", name);
        return name+"是沈阳工业大学软件工程专业的一名学生";
    }
}